package com.corejava.guigucorejavademo.java;

import java.util.concurrent.atomic.AtomicInteger;

public class StackOverflowErrorDemo {
     static AtomicInteger ai=new AtomicInteger(0);
    public static void main(String[] args){
        stackOverflowError();
    }

    private static void stackOverflowError() {
        System.out.println(ai.incrementAndGet());
        stackOverflowError();
    }
}
